﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="InformationAdministrator.aspx.cs" Inherits="InformationAdministrator" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>信息管理页面</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:GridView ID="InformationGridView" runat="server" 
            AllowPaging="True" AutoGenerateColumns="False" DataSourceID="InformationSqlDS" 
            onrowupdating="InformationGridView_RowUpdating" 
            onselectedindexchanged="InformationGridView_SelectedIndexChanged1">
            <Columns>
                <asp:BoundField DataField="InfID" HeaderText="InfID" SortExpression="InfID" />
                <asp:BoundField DataField="Title" HeaderText="Title" SortExpression="Title" />
                <asp:BoundField DataField="Infor" HeaderText="Infor" SortExpression="Infor" />
                <asp:BoundField DataField="Categorie" HeaderText="Categorie" 
                    SortExpression="Categorie" />
                <asp:BoundField DataField="UpTime" HeaderText="UpTime" 
                    SortExpression="UpTime" />
                <asp:BoundField DataField="Author" HeaderText="Author" 
                    SortExpression="Author" />
                <asp:CommandField ShowEditButton="True" />
                <asp:CommandField ShowDeleteButton="True" />
            </Columns>
        </asp:GridView>
        &nbsp;&nbsp;<asp:SqlDataSource ID="InformationSqlDS" runat="server" 
            ConnectionString="<%$ ConnectionStrings:webinfConnectionStringLocalhost %>" 
            SelectCommand="SELECT * FROM [Information]" 
            DeleteCommand="DELETE FROM Information WHERE (InflID = @InflID)" 
            InsertCommand="INSERT INTO Information(InflID, Title, Infor, Categorie, UpTime,Autor) VALUES (@id, @title, @infor, @categorie, @time,@autor)" 
            onselecting="InformationSqlDS_Selecting" 
            UpdateCommand="UPDATE Information SET Name =@Name,Title =@Title,Infor =@Infor,Categorie =@Categorie,UpTime=@Uptime,Author=@Author  WHERE InflID =@InflID"></asp:SqlDataSource>
        <br />
        &nbsp; &nbsp;<br />
    
    </div>
        &nbsp;&nbsp;<asp:DropDownList ID="DropDownList1" runat="server">
            <asp:ListItem>售后</asp:ListItem>
            <asp:ListItem>设计</asp:ListItem>
        </asp:DropDownList>
        &nbsp; &nbsp;<asp:Button ID="Button1" runat="server" Text="发送" OnClick="Button1_Click" />
        &nbsp; &nbsp; &nbsp;&nbsp;
        <br />
        <br />
        <br />
        <br />
        <asp:Label ID="Label1" runat="server" Text="新增分类策略"></asp:Label>
        <asp:TextBox ID="TextBox1" runat="server" OnTextChanged="TextBox1_TextChanged"></asp:TextBox>&nbsp;
        <asp:Button ID="Button2" runat="server" Text="发送" OnClick="Button2_Click" /><br />
    </form>
</body>
</html>
